package com.zjlp.im.netty.handler;

import io.netty.buffer.ByteBufUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.LastHttpContent;

/**
 * Created by Administrator on 2016/12/8.
 */
public class MyEmptyLastHttpContentHandler extends SimpleChannelInboundHandler<LastHttpContent> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, LastHttpContent msg) throws Exception {
        System.out.println("接收到的信息是"+new String(ByteBufUtil.getBytes(msg.content())));
    }
}
